// input-placeholder
input::-webkit-input-placeholder {
  color: #a9a9a9 !important;
  font-size: 14px !important;
}

input:-moz-placeholder {
  color: #a9a9a9 !important;
  font-size: 14px !important;
}

input::-moz-placeholder {
  color: #a9a9a9 !important;
  font-size: 14px !important;
}

input:-ms-input-placeholder {
  color: #a9a9a9 !important;
  font-size: 14px !important;
}

// 滚动条
::-webkit-scrollbar {
  width: 1px;
}

::-webkit-scrollbar-track {
  border-radius: var(--border-radius);
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: var(--border-radius);
  background: var(--border-color);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: var(--border-color);
}

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-family);
  //color: var(--font-color);
}

article {
  width: 100%;
  height: 100%;
  position: relative;

  #pannel {
    width: 400px;
    height: 86vh;
    position: absolute;
    left: var(--margin-width);
    top: var(--margin-width);
    background: var(--pannel-background-color);
    border-radius: var(--border-radius);
    z-index: 99999;
    padding: var(--padding-width);

    .page-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 0 var(--padding-width) 0;

      span {
        font-size: var(--pannel-header-font-size);
      }

      .page-cheked {
        display: flex;
        align-items: center;
        font-size: 0.4em;
        i {
          cursor:pointer;
        }
      }
    }

    .page-content {
      background: var(--pannel-content-background-color);
      height: 95%;

      .block {
        padding: 0 !important;
        margin: 0 !important;

        .list {
          box-sizing: border-box !important;
          padding: 0 !important;
          margin: 0 !important;
          li {
            background: var(--pannel-item-background-color);
            border-bottom: 1px solid var(--border-color);
          }
          li:hover {
            background: var(--pannel-item-hover-color);
          }
        }

        .treeview-item {
          background: var(--pannel-item-background-color);
          cursor: pointer;
        }
      }
    }
  }

  #get-tree-maps {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    background: orange;
    right: var(--margin-width);
    top: var(--margin-width);
    z-index: 4;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  #vehicle-locked-unlocked {
    width: 40px;
    height: 40px;
    font-size: 40px;
    line-height: 40px;
    padding: 5px;
    background: green;
    color: white;
    border-radius: var(--border-radius);
    z-index: 3;
    position: absolute;
    top: var(--margin-width);
    right: var(--margin-width);
    cursor: pointer;
  }

  #coordinate {
    bottom: 10px;
    right: var(--margin-width);
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: right;
    align-items: center;
  }

  #rotator {
    padding: 5px;
    border-radius: var(--border-radius);
    background: var(--background-color);
    top: var(--margin-width);
    right: var(--margin-width);
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: right;
    align-items: center;
    #rotator-slider {
      margin-right: var(--margin-width);
    }
    #rotator-value {
      color: var(--font-color);
      font-weight: bold;
      width: 20px;
      margin-right: var(--margin-width);
    }
    #rotator-close {
      color: var(--font-color);
      font-size: 20px;
      cursor: pointer;
    }
  }

  #vehicle {
    top: 30px;
    left: var(--margin-width);
    position: absolute;
    // 注意这里
    background: #1B1B1B;
    padding: 30px;
    border-radius: 20px;
    z-index: 1;
    .vehicle-item {
      height: 40px;
      box-sizing: border-box;
      display: flex;
      justify-content: left;
      justify-items: center;
      span {
        // 注意这里
        // color: #00FFFF;
        color: #FFFFFF;
        font-size: 20px;
      }
    }
  }

  #vp-header {
    top:0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 50px;
    button {
      float: left;
      margin: 10px;
      width: 110px !important;
      span {
        color: white;
        font-size: 14px;
        margin-right: 5px;
      }
    }

    #person-show-filter {
      float: right;
      width: 500px;
      display: flex;
      justify-content: left;
      align-items: center;
      div {
        display: flex;
        justify-content: center;
        align-items: center;
        float: left;
        font-size: 14px;
        color: white;
      }
    }
    div {
      float: right;
      height: 50px;
      width: 100px;
      font-weight: bold;
      font-size: 20px;
      img {
        width: 20px;
        height: 20px;
        margin: 15px 5px;
        float: left;
      }
      span {
        line-height: 50px;
        color: white;
        float: left;
      }
    }
  }

  #vp-footer {
    left:0;
    bottom: 5px;
    position: fixed;
    width: 100%;
    z-index: 5;
    input[name='slider'] {
      width: 20vw;
      font-size: 40px;
      margin-left: var(--margin-width);
    }
  }

  #sensor-image {
    position: absolute;
    width: 30px;
    height: 30px;
    left: -30px;
    top: 0;
    z-index: 3;
    cursor: pointer;
  }
}

// 修改framework7样式
#app .row {
  padding: 0;
}
#app .toast-content {
  .toast-text{
    color: var(--toast-font-color) !important;
  }
  background: var(--toast-background-color) !important;
}
#app .dialog{
  background: var(--dialog-background-color);
  .dialog-inner {
    .dialog-title {
      color: var(--font-color);
    }
    input {
      background: var(--background-color);
      border-radius: var(--border-radius);
    }
    .dialog-input-field.input::after {
      display: none !important;
    }
  }

  .dialog-button {
    color: var(--primary-color) !important;
  }

  .dialog-buttons {
    .dialog-button {
      background: var(--primary-color);
      color: white !important;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

#app .button.button-fill {
  height: 30px;
  width: 100px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  margin-right: var(--margin-width);
}

#app .popup {
  background: var(--popup-background-color);
  padding: var(--padding-width);
  display: flex;
  flex-flow: column;

  header {
    background: var(--popup-header-background-color);
    font-size: var(--popup-header-font-size);
    height: 36px;
  }

  article {
    box-sizing: border-box;
    .list {
      .item-content {
        background: var(--list-item-content-color);
      }
    }
    .no-hairlines-md {
      margin: 0;
      padding: 0;

      .item-input {
        background: var(--popup-article-background-color);
        margin: 0;
        padding: 0;

        .item-label {
          color: var(--font-color);
          width: 120px;
          padding: 0;
          line-height: 48px;
        }

        .item-inner {
          padding: 0;
          margin: 0;
          height: var(--input-height);

          .item-input-wrap {
            margin: 0;
            height: var(--input-height);

            &:after {
              display: none !important;
            }

            select {
              height: var(--input-height);
              width: 100%;
              font-size: var(--font-size);
              padding: 0 5px;
              background: var(--select-background-color);
              color: var(--select-font-color);
              border: 1px solid var(--border-color);
              border-radius: var(--border-radius);

              option {
                color: var(--select-font-color);
              }
            }

            input {
              height: var(--input-height);
              width: 100%;
              font-size: var(--font-size);
              padding-left: 5px;
              padding-right: 5px;
              background: var(--input-background-color);
              color: var(--input-font-color);
              border: 1px solid var(--border-color);
              border-radius: var(--border-radius);
            }
          }
        }
      }

      .data-table {
        background: var(--table-background-color);
        overflow-x: scroll;
        padding: 0;
        margin: 0;

        thead {
          th {
            color: var(--font-color);
            background: var(--table-th-background-color);
            border-bottom: solid 1px var(--border-color);
            height: 36px;

            &.label-cell {
              font-size: var(--table-header-font-size);
              background: var(--table-tr-background-color);
            }
          }
        }

        tbody {
          tr {
            background: var(--table-tr-background-color);
            border-bottom: solid 1px var(--border-color);
            height: 30px;

            td {
              &.label-cell {
                font-size: var(--table-row-font-size);
              }
            }

            &:hover {
              background: var(--table-tr-hover-color) !important;
            }
          }
        }
      }
    }
  }

  footer {
    display: flex;
    justify-content: end;
    align-items: center;

    .popup-page {
      color: var(--primary-color);
      cursor: pointer;
    }
  }

  .popup-closer {
    text-decoration: none;
    position: absolute;
    top: var(--margin-width);
    right: var(--margin-width);
    color: var(--font-color);

    &:after {
      content: "✖";
    }
  }
}

// 修改ol样式
.ol-viewport {
  background-color: var(--ol-viewport-background-color);
}
.ol-tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 12px;
  cursor: default;
  user-select: none;
}
.ol-tooltip-measure {
  opacity: 1;
  font-weight: bold;
}
.ol-tooltip-static {
  background-color: #ffcc33;
  color: black;
  border: 1px solid white;
}
.ol-tooltip-measure:before,
.ol-tooltip-static:before {
  border-top: 6px solid rgba(0, 0, 0, 0.8);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  position: absolute;
  bottom: -6px;
  margin-left: -7px;
  left: 50%;
}
.ol-tooltip-static:before {
  border-top-color: #ffcc33;
}
